﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ViewModels="clr-namespace:ScrumSprintMonitor.Modules.WorkItemMonitor.ViewModels"
    xmlns:Controls="clr-namespace:ScrumSprintMonitor.Modules.WorkItemMonitor.Controls"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    xmlns:il="clr-namespace:Microsoft.Expression.Interactivity.Layout;assembly=Microsoft.Expression.Interactions">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="TeamMemberBadgeDataTemplate.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    
    <DataTemplate DataType="{x:Type ViewModels:TeamMembersListViewModel}">
        <ScrollViewer VerticalScrollBarVisibility="Disabled">
            <ScrollViewer.OpacityMask>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#FF000000" Offset="0.942"/>
                    <GradientStop Color="#00FFFFFF" Offset="0.987"/>
                </LinearGradientBrush>
            </ScrollViewer.OpacityMask>

            <Grid Width="7cm" HorizontalAlignment="Center">
                <Controls:SprintWarningBorder>
                    <Controls:SprintWarningBorder.OpacityMask>
                        <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                            <GradientStop Color="#00000000" Offset="0.0"/>
                            <GradientStop Color="#FF000000" Offset="0.3"/>
                            <GradientStop Color="#FF000000" Offset="1"/>
                        </LinearGradientBrush>
                    </Controls:SprintWarningBorder.OpacityMask>
                </Controls:SprintWarningBorder>

                <ItemsControl ItemsSource="{Binding TeamMembersIncludingUnassigned}" Focusable="False">
                    <ItemsControl.ItemsPanel>
                        <ItemsPanelTemplate>
                        	<StackPanel>
                        		<i:Interaction.Behaviors>
                        			<il:FluidMoveBehavior Duration="0:0:2" AppliesTo="Children" />
                        		</i:Interaction.Behaviors>
                        	</StackPanel>
                        </ItemsPanelTemplate>
                    </ItemsControl.ItemsPanel>
                    <ItemsControl.ItemContainerStyle>
                        <Style TargetType="FrameworkElement">
                            <Setter Property="Margin" Value="6,6,6,0"/>
                        </Style>
                    </ItemsControl.ItemContainerStyle>
                </ItemsControl>
            </Grid>
        </ScrollViewer>
    </DataTemplate>
</ResourceDictionary>